<html>

<head>
    <title>下载</title>
    <script src="jquery-3.7.1.min.js" type="text/javascript"></script>
</head>

<body>
    <button onclick="down()">开始</button>
</body>
<script type="text/javascript">
    jQuery.support.cors = true;
    function down() {
        $.ajax({
            url: 'https://cloud.peiliyou.com/org-math-server/downloadQuestion/downloadTrainingQuestionBySprintIdAndKnowledge',
            type: 'GET',
            responseType: 'blob',
            //dataType:'jsonp',
            data: {
                sprintId: 30,
                knowledgeCode: 1
            },
            headers:{
                'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJpZGVudGl0eUNvZGVzIjpbMV0sImNsaWVudElkIjoxLCJuYW1lIjoi5byg6ICB5biIIiwidXNlck5hbWUiOiJ6bGFkbWluIiwidG9rZW5UeXBlIjoiYWNjZXNzVG9rZW4iLCJleHAiOjE3MDQ5NTYyMzksInVzZXJJZCI6MTczMjk1OTAzODEyNTExNzQ0MX0.evOLCRYvQWmbsnhZKi6p0HTcARzD12b1WZiTWZ1l_lL8OAP8qrdd1Z5KxJ58syIZ7SD7PhFFl--jDvMXKCQmfQ'
            },
            success: function (res) {
                const blob = new Blob(["\ufeff", res], { type: 'application/msword' });
                var url = URL.createObjectURL(blob);
                var link = document.createElement('a');
                link.href = url;
                link.download = '';
                link.click();
                URL.revokeObjectURL(url);
            }
        });
    }
</script>

</html>